package com.aurora.base.util;

public class Utf8Util {

	public static String setUtf8(String value) {

		try {
			if (value != null && !value.equals("")) {
				if (value.equals(new String(value.getBytes("iso8859-1"),
						"iso8859-1"))) {
					value = new String(value.getBytes("iso8859-1"), "utf-8");
				}
			}
			return value;

		} catch (Exception e) {
			e.printStackTrace();
			return value;
		}
	}

}
